{% extends 'layout/header.html' %}

{% block body %}
    <h2>编辑学生</h2>
    <form action="/edit_stu/{{ nid }}/" method="POST" novalidate>
        {% csrf_token %}
        {% for feild in obj %}
            {% if feild.name != 'cls' %}
                <div class="form-group">
                    <label for="{{ feild.id_for_label }}">{{ feild.label }}</label>
                    <div class="row">
                        <div class="col-xs-7">
                            {{ feild }}
                            <span class="error-msg">{{ feild.errors.0 }}</span>
                        </div>
                    </div>
                </div>
            {% endif %}
        {% endfor %}
        <input type="submit" class="btn btn-default" value="确 定"/>
    </form>
{% endblock %}